#ifndef __WASAPI_H__
#define __WASAPI_H__
#include "voice.h"
#include <mmdeviceapi.h>
#include <Audioclient.h>
#include <functiondiscoverykeys_devpkey.h>
#include "handle.h"
#include "voicecontext.h"
#include <Audiopolicy.h>
class WasApi :
	public CollectHandle
{
private:
	void init(recType type);
	void collecVoiceHandle(int i);
	void setFormatParam(WAVEFORMATEX* pwfx, int i);
public:
	WasApi(recType type = recType::REC_ALL);
	void StartGetData();
	void Stop();
	virtual ~WasApi();
};

#endif
